package de.justphil.tcg.tcgserver.servlets;


//public class HttpDigestAuthFilter implements Filter {
public class HttpDigestAuthFilter {

	/*
	@Override
	public void destroy() {
		System.out.println("HttpDigestAuthFilter destroyed!");
	}
	

	@Override
	public void doFilter(ServletRequest request, ServletResponse res, FilterChain chain) throws IOException, ServletException {
		final HttpServletRequest req = (HttpServletRequest) request;
		if (req.getHeader("Authorization") == null || req.getHeader("Authorization").equals("")) {
			String s = "Unauthorized";
			res.setContentType("text/plain");
			res.setContentLength(s.length());
			res.getWriter().println(s);
		}
		else {
			chain.doFilter(req, res);
		}
	}

	@Override
	public void init(FilterConfig fc) throws ServletException {
		System.out.println("HttpDigestAuthFilter initialized!");
	}
	
	*/
}
